import request from '@/utils/request'

export default {
  findAllUser() {
    return request({
      url: `/user/findAllUser`,
      method: 'get'
    })
  },
  createUser(user, contractName, contractId) {
    return request({
      url: `/user/createUser/${contractName}/${contractId}`,
      method: 'post',
      data: user
    })
  },
  findUser(userAddress) {
    return request({
      url: `/user/findUser/${userAddress}`,
      method: 'get'
    })
  },
  findAssetList(userAddress) {
    return request({
      url: `/user/assetList/find/${userAddress}`,
      method: 'get'
    })
  }
}
